From f3d4dbdf05f9c3ee9ac3d0ac701a5036a8c8452b Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 30 Jun 2011 19:34:25 +0000 Subject: [PATCH] Per Aaron, fix for r91180: pass false to second parameter of User::newFromName() to allow anonymous users --- includes/specials/SpecialUndelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 910f3817ae..18c558c039 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -538,7 +538,7 @@ class PageArchive { $wasnew = $article->updateIfNewerOn( $dbw, $revision, $previousRevId ); if ( $created || $wasnew ) { // Update site stats, link tables, etc - $user = User::newFromName( $revision->getRawUserText() ); + $user = User::newFromName( $revision->getRawUserText(), false ); $article->doEditUpdates( $revision, $user, array( 'created' => $created, 'oldcountable' => $oldcountable ) ); } -- 2.20.1